package com.zl.aop;

import com.zl.aop.service.IService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ZLL
 * @date create in 2018/05/09
 */
public class Main {

    public static void main(String[] args) {

        ApplicationContext ac = new ClassPathXmlApplicationContext("spring.xml");

        IService bean = ac.getBean(IService.class);

/*
        String ret2 = bean.sayHello("wang ni ma");
        System.out.println(ret2);
*/

        System.out.println("======================");
        bean.sayHello("xx");


    }
}
